package com.shisfish.library.Inter;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.shisfish.core.Inter.IModelInter;
import com.shisfish.library.Model.News;

public interface INewsInter extends IModelInter<News> {

	public List<News> selectAllPage(@Param("currentPage") int currentPage, @Param("pageSize") int pageSize);
	
	public int countByCho(@Param("choose") String choose);
	
	public List<News> selectByChoPage(@Param("choose") String choose, @Param("currentPage") int currentPage, @Param("pageSize") int pageSize);
	
	public int countByType(@Param("type") int type);
	
	public List<News> selectByTypePage(@Param("type") int type, @Param("currentPage") int currentPage, @Param("pageSize") int pageSize);
	
	public News selectId(@Param("id") int id);
	
	public int countByChoE(@Param("choose") String choose, @Param("list") List<String> list);
	
	public List<News> selectByChoPageE(@Param("choose") String choose, @Param("list") List<String> list, @Param("currentPage") int currentPage, @Param("pageSize") int pageSize);
	
	public int countAllE(@Param("list") List<String> list);
	
	public List<News> selectAllPageE(@Param("list") List<String> list, @Param("currentPage") int currentPage, @Param("pageSize") int pageSize);

	public int countByInter(@Param("interest") int interest);

	public List<News> selectByInterPage(@Param("interest") int interest, @Param("currentPage") int currentPage,
			@Param("pageSize") int pageSize);

	public int countCho(@Param("choose") String choose, @Param("type") int type, @Param("interest") String interest);

	public List<News> selectChoPage(@Param("choose") String choose, @Param("type")  int type, @Param("interest")  String interest,
			@Param("currentPage") int currentPage, @Param("pageSize")  int pageSize);
	
	
}
